<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>WIKINDX CLASS DOCUMENTATION</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="/wikindx2/docs/docs.css" type="text/css" />
</head>

<body bgcolor="#FFFFFF" text="#000000">
<h2>WIKINDX METHODS</h2>
<p><strong>Method:</strong><br />
  
  query()
</p>
<p><strong>Class:</strong><br />

  <a href="sqlClass.html">SQL</a>
<p><strong>Method Call:</strong><br />
  include_once("core/sql/SQL.php");<br />
$db = new SQL();<br />
ADODB_RECORDSET $db->query(STRING: $sqlStatement); </p>
<p><strong>Description:<br />
</strong>Executes a SQL query with $sqlStatement.
<p>The return is a ADODB_RECORDSET suitable for passing to the <a href="fetchRowMethod.html">fetchRow()</a>, <a href="loopRecordSetMethod.html">loopRecordSet()</a> or <a href="fetchOneMethod.html">fetchOne()</a> methods etc. If it fails to execute the query, the script will exit with an error message.
<p>The method also increments the global $WIKINDX_DB_QUERIES counter as used in the WIKINDX footer statement</p>
<p><strong>Usage:</strong><br /> 
  You are unlikely to use this method directly as it is called automatically from the following methods:<br />
  <a href="deleteMethod.html">delete()</a><br />
  <a href="insertMethod.html">insert()</a><br />
  <a href="listfieldsMethod.html">listFields()</a>  <br />
  <a href="selectMethod.html">select()</a><br />
  <a href="updateMethod.html">update()</a><br />
  <a href="updatenullMethod.html">updateNull()</a><br />
<a href="updatesingleMethod.html">updateSingle()</a></p>
<p>The one time you will use it will be after formatting a SQL SELECT string with <a href="selectnoexecuteMethod.html">selectNoExecute()</a> should you wish to build up such a statement bit by bit. <br />
</p>
<p align="right"><a href="../../index.html">WIKINDX home</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../../usage/index.html">WIKINDX usage</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../index.html">WIKINDX classes</a>
</p>
</body>

</html>
